/**
 *  research.sbookmarking is the package name for the social bookmarking 
 *  project done by Dr S. Chu
 */
package research.sbookmarking;

import java.util.List;

import research.sbookmarking.input.InputController;
import research.sbookmarking.output.OutputController;
import research.sbookmarking.process.ProcessController;

/**
 *  This is the main controller for the application. This application also 
 *  uses packages org.connotea, org.afox.formatting, org.afox.parsers.xml,
 *  org.afox.util, org.afox.util.assertImpl, org.afox.util.stringtype,
 *  org.afox.util.validators, org.afox.util.validators.string, and 
 *  org.apache.xerces.parsers.SAXParser
 *  <p>
 *  You can redistribute it and/or modify it under the terms of the GNU
 *  General Public License as published by the Free Software Foundation;
 *  either version 2 of the License, or (at your option) any later version.
 *  <p>
 *  @author <A HREF="mailto:aatleung@gmail.com">Albert Leung</a>
 *  @version 1.0
 *
 */

public class AppController {

	/**
	 *   This method will be call when the program is executed.
	 *   <p>
	 *   @param args the command-line arguments that is passed to this
	 *   			 program.
	 *   
	 */
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		List dataContainers = InputController.getInstance().getQuery("albert.xml");
		ProcessController.getInstance().processData(dataContainers);
		OutputController.getInstance().saveRawData("albert.raw.rtf", dataContainers);
		OutputController.getInstance().saveData("albert.txt",dataContainers);
	}

}
